package com.example.demo.nettydemo.message;

import com.example.demo.nettydemo.Message;
import com.example.demo.nettydemo.common.CommandConstant;


public class SingleMessageRequest extends Message {

    private String sendFrom;

    private String sendTo;

    private String content;

    public SingleMessageRequest(){
        super.messageType = CommandConstant.singleMessageRequest;
    }

    public SingleMessageRequest(String sendFrom,String sendTo,String content){
        super.messageType = CommandConstant.singleMessageRequest;
        this.sendFrom = sendFrom;
        this.sendTo = sendTo;
        this.content = content;
    }


    public String getSendFrom() {
        return sendFrom;
    }

    public void setSendFrom(String sendFrom) {
        this.sendFrom = sendFrom;
    }

    public String getSendTo() {
        return sendTo;
    }

    public void setSendTo(String sendTo) {
        this.sendTo = sendTo;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    @Override
    public String toString() {
        return "SingleMessageRequest{" +
                "messageType=" + messageType +
                ", sendDate=" + sendDate +
                ", sendFrom='" + sendFrom + '\'' +
                ", sendTo='" + sendTo + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
